/**
 * 2017年11月16日
 */
package exp.algorithm.sic.scalerf;

import weka.core.Instance;
import weka.core.Instances;

/**
 * 基于滑窗的选择
 * @author Alex
 *
 */
public class SlidingWindowIntervalConverter implements IntervalSelector {
	int windowSize = -1;
	
	/**
	 * 
	 */
	public SlidingWindowIntervalConverter() {
	}
	
	public SlidingWindowIntervalConverter(int w) {
		windowSize = w;
	}
	@Override
	public Instance transform(Instance ins) {
		double [] vals = ins.toDoubleArray();
//		排除类标
		int end = vals.length-1;
		for(int i = 0;i<end-windowSize+1;i++){
			
		}
		
		return null;
	}

	@Override
	public Instances transform(Instances data) {
		return null;
	}

}
